package com.example.service.impl.contractManage;

import com.example.entity.ContractVO;
import com.example.mapper.contractManage.ContractCheckMapper;
import com.example.service.contractManage.ContractCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ----MaxCV工程师---
 *
 * @author wangbiao
 * @date2024/12/6
 * @desc
 */

@Service
public class ContractCheckServiceImpl implements ContractCheckService {

    @Autowired
    private ContractCheckMapper contractCheckMapper;
    @Override
    public List<ContractVO> checkList(ContractVO contractVO) {
        return contractCheckMapper.checkList(contractVO);
    }


    /**
     * 审核通过
     * @param contractId
     * @return
     */
    @Override
    public int ratify(int contractId) {
        return contractCheckMapper.ratify(contractId);
    }

    /**
     * 审核驳回
     * @param contractId
     * @return
     */
    @Override
    public int reject(int contractId) {
        return contractCheckMapper.reject(contractId);
    }
}
